package com.shortchainsystem.common.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component                         //定义为spring管控的bean
@ConfigurationProperties(prefix = "minio")         //指定加载的数据（配置文件中）
@PropertySource(value = {"classpath:application.yml"})
public class MinioConstants {
    private String accessKey;
    private String secretKey;
    private String host;
    private String port;
    private String bucketName;
}
